
class Animal:
    def __init__(self,name):
        self.name=name
    def feed(self):
        pass
    def say(self):
        pass
        

class Cat(Animal):
    def __init__(self,name):
        self.name=name
    def feed(self):
        self.say()
    def say(self):
        print("喵喵！",self.name)
        

class Dog(Animal):
    def __init__(self,name):
        self.name=name
    def feed(self):
        self.say(self)
    def say(self):
        print("汪汪！我是",self.name)


class Person(Animal):
    def __init__(self, name):
        super().__init__(self,name)
        self.name=name
    def own(self,k):
        if(isinstance(k,Animal)):
            k.feed()
